package cate.common.table.pvp.guildwar.sheet;


import cate.common.table.ESheet;
import cate.common.table.pvp.guildwar.row.GuildWarPtRow;
import easy.java.dev.note.NoteClass;

@NoteClass("据点配置")
public class GuildWarPtSheet extends ESheet<GuildWarPtRow> {

    @Override
    public String getSheetName() {
        return "据点配置";
    }

    @Override
    protected GuildWarPtRow buildRow() {
        return new GuildWarPtRow();
    }


    public GuildWarPtRow findPt(int level, int ptId) {
        for (GuildWarPtRow row : this.getList()) {
            if (row.guildLevel == level && row.ptId == ptId) {
                return row;
            }
        }
        return null;
    }
}
